package com.vdong.trade.trading.common.constants;

import org.apache.http.client.HttpClient;

/**
 * @author <a href="mailto:clf@vdongzc.com">clf</a>
 * @Description: 微信支付相关常量
 * @Date Create on 2018-12-13 15:10:22
 * @since version1.0
 */
public class WechatPayConstants {

    public enum SignType {
        MD5, HMACSHA256
    }

    public static final String FAIL = "FAIL";

    public static final String SUCCESS = "SUCCESS";

    public static final String OK = "OK";

    public static final String FIELD_SIGN = "sign";

    public static final String RETURN_CODE = "return_code";

    public static final String RESULT_CODE = "result_code";

    public static final String TRADE_TYPE = "trade_type";

    public static final String NONCE_STR = "nonce_str";

    public static final String PREPAY_ID = "prepay_id";

    public static final String PREPAY_ID_STR = "prepay_id=";

    public static final String CODE_URL = "code_url";

    public static final String ERR_CODE = "err_code";

    public static final String ERR_CODE_DES = "err_code_des";

    public static final String RETURN_MSG = "return_msg";

    public static final String APPID = "appid";

    public static final String PAYMENT_NO = "payment_no";

    public static final String SYSTEMERROR = "SYSTEMERROR";

    public static final String NO_CHECK = "NO_CHECK";

    public static final String ATTACH = "attach";

    public static final String TOTAL_FEE = "total_fee";

    public static final String TRADE_STATE = "trade_state";

    public static final String WXPAYSDK_VERSION = "WXPaySDK/3.0.9";

    public static final String USER_AGENT = WXPAYSDK_VERSION +
            " (" + System.getProperty("os.arch") + " " + System.getProperty("os.name") + " " + System.getProperty("os.version") +
            ") Java/" + System.getProperty("java.version") + " HttpClient/" + HttpClient.class.getPackage().getImplementationVersion();


    public static String shaheurl = "https://api.mch.weixin.qq.com/sandboxnew/pay/getsignkey";


}
